REFERENCES FOR LEARNING & USING APPLESCRIPT Modified: 2018/06/19 18:47
AppleScript is a rather peculiar scripting language to learn.
<div class="min-w-screen min-h-screen bg-gray-200 flex items-center justify-center px-5 py-5"> | |
<div class="w-full max-w-6xl mx-auto rounded-xl bg-white shadow-lg p-5 text-black" x-data="app()" x-init="init($refs.wysiwyg)"> | |
<div class="border border-gray-200 overflow-hidden rounded-md"> | |
<div class="w-full flex border-b border-gray-200 text-xl text-gray-600"> | |
<button class="outline-none focus:outline-none border-r border-gray-200 w-10 h-10 hover:text-indigo-500 active:bg-gray-50" @click="format('bold')"> | |
<i class="mdi mdi-format-bold"></i> | |
</button> | |
<button class="outline-none focus:outline-none border-r border-gray-200 w-10 h-10 hover:text-indigo-500 active:bg-gray-50" @click="format('italic')"> | |
<i class="mdi mdi-format-italic"></i> | |
</button> |
/* | |
.d dP"Yb 888888 88 88 88 88b 88 dP""b8 .dP"Y8 | |
.d88 dP Yb 88 88 88 88 88Yb88 dP `" `Ybo." | |
88 Yb dP 88 888888 88 88 Y88 Yb "88 o.`Y8b | |
88 YbodP 88 88 88 88 88 Y8 YboodP 8bodP' |
(* | |
GUIライブラリ | |
ロード方法の例(このライブラリをユーザースクリプトフォルダに"_gui.scpt"で保存した場合) | |
property GUI : load script file ((path to scripts folder as text) & "_gui.scpt") | |
あるいは動的に... | |
set GUI to load script file ((path to scripts folder as text) & "_gui.scpt") | |
開発&テスト環境 | |
MacBook OSX 10.5.6 | |
AppleScript 2.0.1 |
<div class="min-w-screen min-h-screen bg-gray-200 flex items-center justify-center px-5 py-5"> | |
<div class="w-full max-w-6xl mx-auto rounded-xl bg-white shadow-lg p-5 text-black" x-data="app()" x-init="init($refs.wysiwyg)"> | |
<div class="border border-gray-200 overflow-hidden rounded-md"> | |
<div class="w-full flex border-b border-gray-200 text-xl text-gray-600"> | |
<button class="outline-none focus:outline-none border-r border-gray-200 w-10 h-10 hover:text-indigo-500 active:bg-gray-50" @click="format('bold')"> | |
<i class="mdi mdi-format-bold"></i> | |
</button> | |
<button class="outline-none focus:outline-none border-r border-gray-200 w-10 h-10 hover:text-indigo-500 active:bg-gray-50" @click="format('italic')"> | |
<i class="mdi mdi-format-italic"></i> | |
</button> |
UPDATE/SOLVED: 01/06/12 | |
*** | |
After further investigation by @noarfromspace with @IntegoSecurity it was | |
decided that Apple's Migration Assistant had created these files .SM.gul.* | |
clone files and likely crashed or had otherwise failed to clean them up. | |
Links to the class dump and disassembly of the migration framework where | |
the code utilizes the ".SM.gul." prefix in several locations. |
<template> | |
<div md-chips="data.bind: chips; placeholder:+tag;"></div> | |
<div> | |
<!-- chip data: ${chips|stringify} --> | |
chip data: | |
<ul> | |
<li repeat.for="chip of chips"> | |
${chip.tag} | |
</li> | |
</ul> |
Copy the plist to ~/Library/LaunchAgents
then run
launchctl load ~/Library/LaunchAgents/com.scripting.opml.plist
This plist assumes that OPML Editor is installed in /Applications/OPML
. If you have it installed in a different location, you will need to modify line 13 of the plist.
The OPML Editor should launch. It will re-launch within 10 seconds if it quits for whatever reason.
killall OPML
-- HOWTO: | |
-- after saving it, open with Script Editor (default) and run it | |
-- PREREQUISITES: | |
-- make sure your Keynote presentation is open in the background | |
-- AFTER EXPORT: | |
-- if you can't open the file due to encoding errors, open with Sublime (or another a text editor) and then "File / Save with encoding / UTF8" | |
tell application "Keynote" |
<head> | |
<link href='https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.16.0/codemirror.css' rel='stylesheet'> | |
<script src='https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.16.0/codemirror.js'></script> | |
<script src='https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.16.0/mode/htmlmixed/htmlmixed.js'></script> | |
<script src='https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.16.0/mode/javascript/javascript.js'></script> | |
<script src='https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.16.0/mode/xml/xml.js'></script> | |
</head> | |
<body> | |
<div style="background-color: #FFF; max-width: 800px; margin: auto; padding: 20px;"> |